package com.example.cuibo.androidstudybasicknowadge;

/**
 * Created by cuibo on 2017/10/28.
 */

abstract class Employee {

    private String name;
    private String id;
    private double pay;

    public Employee(String name, String id, double pay) {
        this.name = name;
        this.id = id;
        this.pay = pay;
    }

    public Employee() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getPay() {
        return pay;
    }

    public void setPay(double pay) {
        this.pay = pay;
    }
    public abstract void  work();
}

class Coder extends Employee{
    public Coder(String name, String id, double pay) {
        super(name, id, pay);
    }

    public Coder() {
    }


    public void work() {

    }
}
class Mangeer extends Employee{
    private int bounds;

    public Mangeer(String name, String id, double pay, int bounds) {
        super(name, id, pay);
        this.bounds = bounds;
    }

    public Mangeer(int bounds) {
        this.bounds = bounds;
    }


    public void work() {

    }
}
